package com.fruit.service.impl;

import com.fruit.dao.FruitCategoryDAO;
import com.fruit.dao.impl.FruitCategoryDAOImpl;
import com.fruit.pojo.FruitCategory;
import com.fruit.service.FruitCategoryService;

import java.util.List;

public class FruitCategoryServiceImpl implements FruitCategoryService {
    private FruitCategoryDAO fruitCategoryDAO = new FruitCategoryDAOImpl();

    @Override
    public List<FruitCategory> getCategoryList() throws Exception {
        return fruitCategoryDAO.getCategoryList();
    }
}
